package com.example.fanplant.model;

import com.alibaba.fastjson.JSONObject;

public class JSONResult extends JSONObject {

    private JSONObject mJson;


    public JSONResult(int code, String msg, Object data) {
        mJson = new JSONObject();
        mJson.put("code", code);
        mJson.put("msg", msg);
        mJson.put("data", data);
    }

    public JSONObject getJson() {
        return mJson;
    }
}
